import React from 'react'
import ReactDOM from 'react-dom'
import App from './App.jsx';
import store from './store';
import { Provider } from 'react-redux'


ReactDOM.render(
  //Provider为所有组件提供store
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById("root")
)

//redux使用最后一步，监听数据变化，执行render
// store.subscribe(()=>{
//   ReactDOM.render(<App />, document.getElementById("root"))
// })
